"""
spark  rdd  读取文件获取数据
"""

from pyspark import SparkConf, SparkContext

conf = SparkConf().setMaster("local[*]").setAppName("test_spark_app")

sc = SparkContext(conf=conf)

rdd = sc.textFile("F:/projects/PycharmProjects/example/a.txt")

print(rdd.collect())

sc.stop()
